/**
 * Created by yazhou on 17/6/28.
 */

'use strict'

let preUrl = {
    apiUrl: 'https://oapi1pre.ofashion.com.cn',
    loginUrl: 'https://oapi1pre.ofashion.com.cn/small_program_auth',
    mUrl: 'https://m1pre.ofashion.com.cn',
}

let prodUrl = {
    apiUrl: 'https://moses.ofashion.com.cn',
    loginUrl: 'https://moses.ofashion.com.cn/small_program_auth',
    mUrl: 'https://m.ofashion.com.cn',
}

let testUrl = {
    apiUrl: 'http://p7tapi.ofashion.com.cn:8102',
    loginUrl: 'https://p7tapi.ofashion.com.cn:8102/small_program_auth',
    mUrl: 'https://tm.ofashion.com.cn',

}

// 'prod'  生产

let ENV = 'prod'



let config = {
    shareUploadUrl: 'https://oflogservice.ofashion.com.cn:21446',
    uploadUrl: 'https://mars.ofashion.com.cn',
}

if (ENV == 'pre') {
    config.apiUrl = preUrl.apiUrl;
    config.loginUrl = preUrl.loginUrl;
    config.mUrl = preUrl.mUrl
} else if (ENV == 'prod') {
    config.apiUrl = prodUrl.apiUrl;
    config.loginUrl = prodUrl.loginUrl;
    config.mUrl = prodUrl.mUrl
}else if (ENV == 'test') {
    config.apiUrl = testUrl.apiUrl;
    config.loginUrl = testUrl.loginUrl;
    config.mUrl = testUrl.mUrl
}

export {
    config
}